MCS_FLAGS = -debug

ASSEMBLY_NAME = Dashboard.Sidebar
ASSEMBLY = $(ASSEMBLY_NAME).exe

dashboarddir = $(pkglibdir)
dashboard_SCRIPTS = $(ASSEMBLY) $(ASSEMBLY).mdb

ASSEMBLY_REFERENCES = \
	$(GTKSHARP_LIBS) \
	$(GNOMESHARP_LIBS) \
	-r:../Dashboard/Dashboard.dll \
	-r:../Dashboard.Engine/Dashboard.Engine.dll \
	-r:../Dashboard.Util/Dashboard.Util.dll \
	-r:../Dashboard.Mint/Dashboard.Mint.dll

ASSEMBLY_SOURCES =  \
	Dashboard.Sidebar/Driver.cs \
	Dashboard.Sidebar/Sidebar.cs \
	Dashboard.Sidebar/TilePage.cs

$(ASSEMBLY): $(ASSEMBLY_SOURCES)
	$(MCS) $(MCS_FLAGS) -target:exe -out:$@ $(ASSEMBLY_REFERENCES) $(ASSEMBLY_SOURCES)

WRAPPER = dashboard-sidebar
WRAPPER_SOURCE = $(WRAPPER).in
bin_SCRIPTS = $(WRAPPER)

EXTRA_DIST = $(ASSEMBLY_SOURCES) $(WRAPPER_SOURCE)
CLEANFILES = $(ASSEMBLY) *.dll *.exe $(WRAPPER)
DISTCLEANFILES = *.mdb
MAINTAINERCLEANFILES = Makefile.in
